import { BaseResultType } from '#/request'
import uniRequest from '@/request'
import { dealResult } from './dealResult'

export const getGoodList = async (param: any): Promise<BaseResultType<any> | null> => {
    const [result, err] = await uniRequest.post('/goods/searchByCategory', param)
    return Promise.resolve(dealResult(err, result))
}

